﻿<UserControl x:Class="DiscountSharing.LocalControls.DiscountElement"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignWidth="480">
    
    <Grid x:Name="LayoutRoot" Margin="0,0,0,6">
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="400"/>
        </Grid.ColumnDefinitions>

        <Grid x:Name="ImageGrid" Grid.Column="0" Margin="6,6,6,6">
            <Image x:Name="WriterImage" VerticalAlignment="Top" HorizontalAlignment="Center" Width="60" Height="60" Margin="0,6,0,6"/>
        </Grid>

        <Grid x:Name="InfoGrid" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Margin="12,6,12,6">
            <StackPanel x:Name="InfoPanel" Orientation="Vertical" Width="350">
                
                <!-- Name + Time -->
                <StackPanel x:Name="InfoSubPanel1" Orientation="Horizontal">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="220"/>
                            <ColumnDefinition Width="130"/>
                        </Grid.ColumnDefinitions>
                        <Grid Grid.Column="0">
                            <TextBlock x:Name="Writer" HorizontalAlignment="Left"/>
                        </Grid>
                        <Grid Grid.Column="1">
                            <TextBlock x:Name="Time" HorizontalAlignment="Right"/>
                        </Grid>
                    </Grid>
                </StackPanel>
                
                 <!-- Type + Place --> 
                <StackPanel x:Name="InfoSubPanel2" Orientation="Horizontal">
                    <Image x:Name="TypeImage" Height="40" Width="40" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,12,0"/>
                    <TextBlock x:Name="Place" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                </StackPanel>
                
                <!-- Message -->
                <StackPanel x:Name="InfoSubPanel3" Orientation="Horizontal">
                    <TextBlock x:Name="Message" FontSize="24" Foreground="{StaticResource PhoneAccentBrush}" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                </StackPanel>
                
                <!-- Pic Indicator + Location Indicator + Statistics (likes, comments) -->
                <StackPanel x:Name="InfoSubPanel4" Orientation="Horizontal" VerticalAlignment="Center">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="220"/>
                            <ColumnDefinition Width="130"/>
                        </Grid.ColumnDefinitions>
                        <Grid Grid.Column="0">
                            <StackPanel Orientation="Horizontal">
                                <Image x:Name="PicIndicatorImage" Height="30" Width="40" HorizontalAlignment="Left"/>
                                <Image x:Name="LocationIndicatorImage" Height="30" Width="40" HorizontalAlignment="Left"/>
                            </StackPanel>
                        </Grid>
                        <Grid Grid.Column="1">
                            <TextBlock x:Name="Statistics" HorizontalAlignment="Right"/>
                        </Grid>
                    </Grid>
                </StackPanel>
                
            </StackPanel>
        </Grid>
        
    </Grid>
</UserControl>
